package com.graduationproject.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.graduationproject.entity.User;

import java.util.List;

/**
 * @author shkstart
 * @create 2023-12-19-14:00
 */
public interface UserService extends IService<User> {

    User login(String username,String password);

    void register(User user);

    void updateStatusLogin( String username);

    void updateStatusLogout(String username);

    User getUserInfo(String username);

    void updateUser(String username, String height, String weight,Integer userId,String labor,String years);

    List<User > findUserPage();

    int findTotal();

    User findById(Integer id);

    void userPut(User user);

    void deleteUser(int id);

    void updateUserSmall(User user);
}
